package org.riahispano.twitterds.services.listener;

import org.riahispano.twitterds.domain.LastMessage;

/**
 * @author: ecamacho
 * riahispano 2010
 */
public interface TwitterPollingService {

    /**
     * Receives the last message received on a given twitter account
     * and starts the polling of the account looking for new messages.
     * When new messages are found, it notifies them sending a javax.jms.ObjectMessage
     * containing the collection of new messages
     * @param message
     */
    void onMessage( LastMessage message );

    
}
